package com.clz.hyperit.service;

import java.util.List;

import com.clz.hyperit.entity.Goods;
import com.clz.hyperit.entity.Order;
import com.clz.hyperit.vo.GoodsOrder;



public interface GoodsService {

	public List<Goods> findGoods();

	public Goods getByName(String name);

	public Integer saveGoods(Goods goods);

	public void deleteGoods(Goods goods);

	public void updateGoods(Goods goods);

	public Goods getByID(Integer id);
	//购买商品
	public Order saveOrder(Goods goods, Integer userdetail_id);
	//获取个人订单信息
	public List<GoodsOrder> findPersonOrder(Integer userdetail_id);
	//获取所有订单
	public List<GoodsOrder> findOrder();
}
